/*
 * Lock.h
 *
 *  Created on: Nov 4, 2012
 *      Author: lucas
 */

#ifndef LOCK_H_
#define LOCK_H_
#include "Mutex.h"
class Lock {
private:
	Mutex& m;
public:
	Lock(Mutex &mutex) : m(mutex) { m.lock();};
	virtual ~Lock() { m.unlock(); };
};

#endif /* LOCK_H_ */
